<?php

/**
* Default Routes
*
*/

$route['default_controller'] = "frontend";

$route['dich-vu'] = 'services/service/index';

//Game
$route['game'] = 'games/game/index';
$route['game-([a-zA-Z_-]+)'] = 'games/game/game_by_category/$1';
$route['games/([a-zA-Z_-]+)'] = 'games/game/game_by_category/$1';
$route['download/game/(:any)'] = 'games/game/game_detail/$1';
$route['game-([a-zA-Z_-]+)/(:any)'] = 'games/game/game_detail/$2';
$route['huong-dan-kinh-nghiem/(:any)'] = 'games/game/support/$1';

//Ring tone
$route['nhac-chuong'] = 'medias/media/ringtone';
$route['download/nhac-chuong/(:any)'] = 'medias/media/media_detail/$1';
$route['nhac-chuong/(:any)/(:any)'] = 'medias/media/media_detail/$2';
$route['nhac-chuong/(:any)'] = 'medias/media/media_by_type/$1';

$route['video-clip'] = 'medias/media/videoclip';
$route['download/video-clip/(:any)'] = 'medias/media/media_detail/$1';
$route['video-clip/(:any)/(:any)'] = 'medias/media/media_detail/$2';
$route['video-clip/(:any)'] = 'medias/media/media_by_type/$1';

//Theme
$route['theme'] = 'images/image/theme';
$route['hinh-nen'] = 'images/image/wallpaper';
$route['hinh-nen-iphone'] = 'images/image/for_iphone';
$route['hinh-dong'] = 'images/image/animation';
$route['hinh-dong/(:any)'] = 'images/image/story_by_type/$1';
$route['hinh-nen/(:any)'] = 'images/image/story_by_type/$1';
$route['hinh-nen-iphone/(:any)'] = 'images/image/story_by_type/$1';
$route['theme/(:any)'] = 'images/image/story_by_type/$1';
$route['dowload/picture/(:any)'] = 'images/image/image_detail/$1';


//Story
$route['truyen-cuoi'] = 'stories/story/funnystory';
$route['ke-truyen-co-tich'] = 'stories/story/tales';
$route['truyen-cuoi/(:any)/(:any)'] = 'stories/story/story_detail/$2';
$route['ke-chuyen-co-tich/(:any)'] = 'stories/story/story_detail/$1';
$route['truyen-cuoi/(:any)'] = 'stories/story/story_by_type/$1';


//Users
$route['user_login'] = 'users/users/login';
$route['logout'] = 'users/users/logout';
$route['dang-ky'] = 'customers/customer/create';
$route['dang-nhap'] = 'customers/customer/login';
//$route['api/users/sms/(:num)/(:num)/([a-zA-Z_-]+)/([a-zA-Z_-]+)'] = 'users/sms/recharge/$1/$2/$3/$4';
//$route['api/service'] = 'users/sms/test';

//Tin tuc
$route['tin-tuc'] = 'news/news/index';
$route['tin-tuc/(:any)/(:any)'] = 'news/news/news_detail/$2';
$route['tin-tuc/(:any)'] = 'news/news/news_category/$1';
$route['news'] = 'news/news/index';
$route['news/(:any)/(:any)'] = 'news/news/news_detail/$2';
$route['news/(:any)'] = 'news/news/news_category/$1';

//vi du
$route['paper'] = 'paper/paper/index';
$route['paper/(:any)/(:any)'] = 'paper/paper/paper_detail/$2';
$route['paper/(:any)'] = 'paper/paper/paper_category/$1';
//Cron
$route['gioi-thieu'] = 'introduce/introduce/index';
$route['gioi-thieu/(:any)'] = 'introduce/introduce/detail/$1';
$route['introduce/(:any)'] = 'introduce/introduce/detail/$1';

$route['lich-khai-giang'] = 'opening/opening/index';
$route['lich-khai-giang/(:any)'] = 'opening/opening/detail/$1';